package com.javasm.mingming.dynamic.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.javasm.mingming.dynamic.entity.Dynamics;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * (Dynamics)表数据库访问层
 *
 * @author makejava
 * @since 2025-01-06 17:31:28
 */
public interface DynamicsDao extends BaseMapper<Dynamics> {

    @Select("select * from dynamics order by create_time desc")
    @Results(id = "os",value = {
            @Result(property = "userInfo",column = "uid",
                    one = @One(select = "com.javasm.mingming.webuser.dao.WebUserInfoDao.selectById"))
    })
    List<Dynamics> selectAllWithUserInfo();

}

